package com.hhg.test.testscroll;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends Activity {

    private static TextView sIndicator1;
    private static TextView sIndicator2;
    private static TextView sIndicator3;
    
    
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        FlatWorkSpace lws = (FlatWorkSpace) findViewById(R.id.myid);
        lws.initScreen();
        
        sIndicator1 = (TextView) findViewById(R.id.indicator_1);
        sIndicator2 = (TextView) findViewById(R.id.indicator_2);
        sIndicator3 = (TextView) findViewById(R.id.indicator_3);
    }   
    
    public static void setLevel(int level) {
        sIndicator1.setVisibility(level == 0 ? View.VISIBLE : View.INVISIBLE);
        sIndicator2.setVisibility(level == 1 ? View.VISIBLE : View.INVISIBLE);
        sIndicator3.setVisibility(level == 2 ? View.VISIBLE : View.INVISIBLE);
    }
    
}